<?php
require_once "Mail.php";


$from = "delirio2004@hotmail.com";
$to = "alvarez.horacio.jose@gmail.com";
$subject = "Hola";
$body = "<strong>Como estas</strong>";

// stick your GMAIL SMTP info here! ------------------------------
//$host = "smtp.gmail.com";
$host = "smtp.live.com";
//$username = "djspro.rg@gmail.com";
$username = "delirio2004@hotmail.com";
//$password = "djsprorg";
$password = ".stich01";
// --------------------------------------------------------------

$headers = array ('From' => $from,
  'To' => $to,
  'Subject' => $subject, 'Content-type' => "text/html");
$smtp = Mail::factory('smtp',
  array ('host' => $host,
    'auth' => true,
    'username' => $username,
    'password' => $password));

$mail = $smtp->send($to, $headers, $body);

if (PEAR::isError($mail)) {
  echo("<p>" . $mail->getMessage() . "</p>");
 } else {
  echo("<p>Message successfully sent!</p>");
 }
?>